package cn.qg.auth.service.qguser;

import cn.qg.beans.pojo.QgUser;
import cn.qg.mapper.qguser.QgUserMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import javax.xml.ws.ServiceMode;
import java.util.HashMap;
import java.util.Map;

/**
 * 11:26
 */
@Service
public class QgUserServiceImpl implements QgUserService {
    @Resource
    QgUserMapper qgUserMapper;

    @Override
    public QgUser login(String phone, String password) throws Exception {
        Map<String,String> map =new HashMap<String,String>();
        map.put("phone",phone);
        map.put("password",password);
        QgUser  qgUser=qgUserMapper.getQgUserByPhonePwd(map);

        return  qgUser;
    }
}
